package com.cjc.sport.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用于跳转测试图片山川页面
 */
@Controller
@CrossOrigin
public class IndexController {
    /**
     * 进入页面
     *
     * @return 相关页面名字
     */
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index() {
        return "index";
    }
    /**
     * 进入页面
     *
     * @return 相关页面名字
     */
    @RequestMapping(value = "/userIndex", method = RequestMethod.GET)
    public String userIndex() {
        return "userIndex";
    }
    /**
     * 进入页面
     *
     * @return 相关页面名字
     */
    @RequestMapping(value = "/adminIndex", method = RequestMethod.GET)
    public String adminIndex() {
        return "adminIndex";
    }
}
